Skip to content

Run the issue-labeler over pull requests using polling#52898

Open
Copilot wants to merge 3 commits intomainfrom
copilot/replicate-change-dotnet-runtime-124023
Open

Run the issue-labeler over pull requests using polling#52898
Copilot wants to merge 3 commits intomainfrom
copilot/replicate-change-dotnet-runtime-124023

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

Copilot-authored pull requests run workflows with permissions lower than other PRs (including those submitted by external contributors). This blocks the issue-labeler workflow from being able to run on those PRs, leaving a prompt for the workflow to be approved.

To run issue-labeler over these PRs as well as other PRs that have missed labeling (such as GitHub service interruptions when the events don't trigger), the PR label prediction workflow adds a cron schedule for as frequently as GitHub will run it (by using every 5 minutes). When triggered from the polling event, we collect the list of open and unlabeled PRs that have been updated since the last polling run (plus 5 extra minutes), and we run the issue-labeler prediction against those.

This also updates the workflow_dispatch event to allow an empty list of PR numbers to force a polling event run.

Addresses (dotnet/issue-labeler#105) Pull Request Labeling does not run automatically for Copilot PRs for this repository.

Replicates dotnet/.github#20 and dotnet/runtime#124023.

Original prompt

Replicate the change in dotnet/runtime#124023. Use the same PR title and description, adding a link to the dotnet/runtime#124023 PR in the bottom of the description for reference.

---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Copilot AI changed the title [WIP] Replicate changes from dotnet/runtime#124023 Run the issue-labeler over pull requests using polling Feb 7, 2026
Copilot AI requested a review from jeffhandley February 7, 2026 21:51
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Do not add the DEFAULT_LABEL configuration. This repo does not use a default label.

Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 7, 2026

@copilot Do not add the DEFAULT_LABEL configuration. This repo does not use a default label.

Done. Removed DEFAULT_LABEL from both the env section and the predict action parameters in commit 96d236f.

@jeffhandley jeffhandley marked this pull request as ready for review February 7, 2026 22:19
Copilot AI review requested due to automatic review settings February 7, 2026 22:19
@jeffhandley jeffhandley enabled auto-merge (squash) February 7, 2026 22:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a scheduled “polling” mode to the issue-labeler PR prediction workflow so that unlabeled PRs (including Copilot-authored PRs where automatic runs may be blocked) can still be labeled proactively, and so missed event-triggered runs can be recovered.

Changes:

  • Add a 5-minute cron schedule trigger to periodically scan for open PRs missing Area- labels.
  • Introduce a poll-pull-requests job that collects candidate PR numbers and feeds them into the prediction job.
  • Update workflow_dispatch so an empty PR list triggers polling behavior, and gate prediction steps when there’s nothing to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants